public class 练习二 {
    public static void main(String[] args) {
    Dog dog = new Dog();
    dog.age=5;
    dog.name="小小";
    dog.weight=5;
    System.out.println(dog.say());
}
}
class Dog{
    String name;
    int age;
    double weight;
    public  String say(){
        String say= "我叫" + name + ", "+" 年龄" +age+","  + ", 体重为" +weight+"kg";
        return say;
    }
}
